const { tool,time,api } = getApp();
Page({

    data: {
        topic: {},      // 课题信息
    },

    // 页面加载
    onLoad(options) {
        tool.getUserInfo().then(info => {
            let { team_id } = info;
            if (team_id) {
                tool.getTeamInfo(team_id).then(team => {
                    let { topic_id } = team;
                    if (topic_id) {
                        tool.getTopicDetails(topic_id).then(topic => {
                            this.setData({ topic });
                        })
                    }
                })
            }
        })
    },
    
})